﻿namespace BusinessObjects
{
    public class Administrator : Staff
    {
        public Administrator()
        {
        }

        public Administrator(Staff staff)
        {
            StaffId = staff.StaffId;
            FirstName = staff.FirstName;
            LastName = staff.LastName;
            EMail = staff.EMail;
            TelephoneNo = staff.TelephoneNo;
            Address = staff.Address;
            Type = staff.Type;
            SubsidiaryId = staff.SubsidiaryId;
        }

        public Administrator(Administrator admin, Staff staff)
        {
            StaffId = staff.StaffId;
            FirstName = staff.FirstName;
            LastName = staff.LastName;
            EMail = staff.EMail;
            TelephoneNo = staff.TelephoneNo;
            Address = staff.Address;
            Type = staff.Type;
            SubsidiaryId = staff.SubsidiaryId;
            Role = admin.Role;
            UserCredentials = admin.UserCredentials;
        }

        public User UserCredentials { get; set; }
        public string Role { get; set; }
    }
}